home *** CD-ROM | disk | FTP | other *** search
- package java.lang;
-
- final class Class$EnclosingMethodInfo {
- private Class<?> enclosingClass;
- private String name;
- private String descriptor;
- // $FF: synthetic field
- static final boolean $assertionsDisabled = !Class.class.desiredAssertionStatus();
-
- private Class$EnclosingMethodInfo(Object[] var1) {
- if (var1.length != 3) {
- throw new InternalError("Malformed enclosing method information");
- } else {
- try {
- this.enclosingClass = (Class)var1[0];
- if (!$assertionsDisabled && this.enclosingClass == null) {
- throw new AssertionError();
- } else {
- this.name = (String)var1[1];
- this.descriptor = (String)var1[2];
- if (!$assertionsDisabled && (this.name == null || this.descriptor == null) && this.name != this.descriptor) {
- throw new AssertionError();
- }
- }
- } catch (ClassCastException var3) {
- throw new InternalError("Invalid type in enclosing method information");
- }
- }
- }
-
- boolean isPartial() {
- return this.enclosingClass == null || this.name == null || this.descriptor == null;
- }
-
- boolean isConstructor() {
- return !this.isPartial() && "<init>".equals(this.name);
- }
-
- boolean isMethod() {
- return !this.isPartial() && !this.isConstructor() && !"<clinit>".equals(this.name);
- }
-
- Class<?> getEnclosingClass() {
- return this.enclosingClass;
- }
-
- String getName() {
- return this.name;
- }
-
- String getDescriptor() {
- return this.descriptor;
- }
-
- // $FF: synthetic method
- Class$EnclosingMethodInfo(Object[] var1, Class.1 var2) {
- this(var1);
- }
- }
-